package com.wunu.smartlock1.net.param;

import com.google.gson.annotations.SerializedName;

public class LoginParam {
    @SerializedName("cc")
    private String countryCode = "86";
    private String phone;
    private String password;

    private LoginParam(Builder builder) {
        setCountryCode(builder.countryCode);
        setPhone(builder.phone);
        setPassword(builder.password);
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    public static final class Builder {
        private String countryCode;
        private String phone;
        private String password;

        public Builder() {
        }

        public Builder countryCode(String val) {
            countryCode = val;
            return this;
        }

        public Builder phone(String val) {
            phone = val;
            return this;
        }

        public Builder password(String val) {
            password = val;
            return this;
        }

        public LoginParam build() {
            return new LoginParam(this);
        }
    }
}
